#2011-06-16  
#Josef Novak
#A trivial Makefile for the AM converter.
CC=g++
CFLAGS=-c -O2 -I. -std=c++0x
LDFLAGS=-ldl
SOURCES=htk-am2wfst.cpp htk2wfst.cpp SymbolTable.cpp \
        htkparser/htkparse.y.cpp htkparser/htkparse.l.cpp htkparser/log_add.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=htk-am2wfst

all: $(SOURCES) $(EXECUTABLE)
	rm *.o; rm htkparser/*.o
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *.o htk-am2wfst
